<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:comps="http://java.sun.com/jsf/composite/comps"
	xmlns:p="http://primefaces.org/ui">

<ui:composition template="/visao/templates/templateLista.xhtml">

	<!-- Parametro utilizado pelo templateLista -->
	<ui:param name="pManagedBean" value="#{ftpBean}" />
	<ui:param name="pTituloLista" value="#{i18n['ftp.lista.page']}" />
	<ui:param name="pQtdeColunasAcoes" value="3" />
	<ui:param name="pWidthTabela" value="100%" />
	<ui:param name="pIsExibirAcoesPadrao" value="true" />	

	<ui:define name="title">
		<h:outputText value="#{i18n['ftp.pagina.nome']}" />
	</ui:define>

	<ui:define name="content">
		
		<p:column headerText="#{i18n['ftp.usuario']}" filterBy="#{item.usuarioFTP}"
			sortBy="{item.usuarioFTP}" width="100px" filterMatchMode="contains">
			<h:outputText value="#{item.usuarioFTP}" />
		</p:column>
		
		<p:column headerText="#{i18n['ftp.caminho']}" filterBy="#{item.caminho}"
			sortBy="{item.caminho}" width="100px" filterMatchMode="contains">
			<h:outputText value="#{item.caminho}" />
		</p:column>
		
		<p:column headerText="#{i18n['ftp.porta']}" filterBy="#{item.porta}"
			sortBy="{item.porta}" width="100px" filterMatchMode="contains">
			<h:outputText value="#{item.porta}" />
		</p:column>
		
		<p:column headerText="#{i18n['ftp.filial']}" filterBy="#{item.filial.nome}"
			sortBy="{item.filial.nome}" width="100px" filterMatchMode="contains">
			<h:outputText value="#{item.filial.nome}" />	
		</p:column>
		
		
	</ui:define>
</ui:composition>

</html>